package com.fanbuchi.app.ins.api;

import com.fanbuchi.app.ins.vo.base.DBResponse;
import com.fanbuchi.app.ins.vo.HotPoint;

import retrofit.http.FormUrlEncoded;
import retrofit.http.GET;
import retrofit.http.Query;
import rx.Observable;

/**
 * Created by rabbit on 2016/3/21.
 * http://api.map.baidu.com/geosearch/v3/nearby?ak=jj6c5xDezyXhmMaG0Qcl7AvDFtYZOisU
 * &geotable_id=136986&location=104.071300,30.663800&radius=1000&tags=&sortby=distance:-1
 */
public interface HotPointAPI {

    @FormUrlEncoded
    @GET("/geosearch/v3/nearby")
    Observable<DBResponse<HotPoint>> nearby(@Query("ak") String ak
            ,@Query("geotable_id") long geotable_id,
                          @Query("location")String location,
                          @Query("radius") double radius
            ,@Query("distance") int distance
    );



}
